<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/struts/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./style/alternative.css" media="all" rel="stylesheet" />
<style type="text/css">
#userList {
border: 2px broove #eee;
margin-top: 1em;
line-height:1.8em;
width:95%
}
#userList th{
text-align:center
}
#userList td{
border: 1px solid #eee;
}
#userAction {
padding-left: 0.5em;
white-space:nowrap;
text-align:left;
}
</style>
</head>
<body>
<div id="content">
    <div id="content_inner">
 <BR><center><h2>用户列表</h2></center>
<display:table name="userList" sort="list" htmlId="userList" class="its" id="user">
<display:column title="用户名" sortable="true" headerClass="sortable">
<img src="images/bullet.gif">&nbsp;
<a href="user.htm?method=edit&userID=${user.userID}">${user.userName}</a>
</display:column>
  <display:column property="email" title="邮箱" sortable="true" headerClass="sortable"/>
  <display:column property="phoneNumber" title="电话号码" sortable="true" headerClass="sortable"/>
  <display:column property="role.roleName" title="角色" sortable="true" headerClass="sortable"/> 
<display:column title="<input type='button' value='添加用户' onclick=\"location.href='user.htm?method=add'\">">
<a href="user.htm?method=edit&userID=${user.userID}" class="icon_btn pic_edit" title="Edit User"><span>Edit User</span></a>
<a href="user.htm?method=delete&userID=${user.userID}" class="icon_btn pic_delete" title="Delete User"><span>Delete User</span></a>
</display:column> 
</display:table>
</div></div>
</body>
</html>